package com.tudouji.project.pay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.pay.mapper.PayinfoRecordMapper;
import com.tudouji.project.pay.domain.PayinfoRecord;
import com.tudouji.project.pay.service.IPayinfoRecordService;

/**
 * 支付记录Service业务层处理
 * 
 * @author tudouji
 * @date 2022-11-10
 */
@Service
public class PayinfoRecordServiceImpl implements IPayinfoRecordService 
{
    @Autowired
    private PayinfoRecordMapper payinfoRecordMapper;

    /**
     * 查询支付记录
     * 
     * @param guid 支付记录ID
     * @return 支付记录
     */
    @Override
    public PayinfoRecord selectPayinfoRecordById(String guid)
    {
        return payinfoRecordMapper.selectPayinfoRecordById(guid);
    }

    /**
     * 查询支付记录列表
     * 
     * @param payinfoRecord 支付记录
     * @return 支付记录
     */
    @Override
    public List<PayinfoRecord> selectPayinfoRecordList(PayinfoRecord payinfoRecord)
    {
        return payinfoRecordMapper.selectPayinfoRecordList(payinfoRecord);
    }

    /**
     * 新增支付记录
     * 
     * @param payinfoRecord 支付记录
     * @return 结果
     */
    @Override
    public int insertPayinfoRecord(PayinfoRecord payinfoRecord)
    {
        return payinfoRecordMapper.insertPayinfoRecord(payinfoRecord);
    }

    /**
     * 修改支付记录
     * 
     * @param payinfoRecord 支付记录
     * @return 结果
     */
    @Override
    public int updatePayinfoRecord(PayinfoRecord payinfoRecord)
    {
        return payinfoRecordMapper.updatePayinfoRecord(payinfoRecord);
    }

    /**
     * 批量删除支付记录
     * 
     * @param guids 需要删除的支付记录ID
     * @return 结果
     */
    @Override
    public int deletePayinfoRecordByIds(String[] guids)
    {
        return payinfoRecordMapper.deletePayinfoRecordByIds(guids);
    }

    /**
     * 删除支付记录信息
     * 
     * @param guid 支付记录ID
     * @return 结果
     */
    @Override
    public int deletePayinfoRecordById(String guid)
    {
        return payinfoRecordMapper.deletePayinfoRecordById(guid);
    }
}
